.class Lcom/instagram/creation/video/f/al;
.super Landroid/view/GestureDetector$SimpleOnGestureListener;
.source "VideoImportFragment.java"


# instance fields
.field final synthetic a:Lcom/instagram/creation/video/f/ae;


# direct methods
.method private constructor <init>(Lcom/instagram/creation/video/f/ae;)V
    .locals 0
    .parameter

    .prologue
    .line 823
    iput-object p1, p0, Lcom/instagram/creation/video/f/al;->a:Lcom/instagram/creation/video/f/ae;

    invoke-direct {p0}, Landroid/view/GestureDetector$SimpleOnGestureListener;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/instagram/creation/video/f/ae;Lcom/instagram/creation/video/f/af;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 823
    invoke-direct {p0, p1}, Lcom/instagram/creation/video/f/al;-><init>(Lcom/instagram/creation/video/f/ae;)V

    return-void
.end method


# virtual methods
.method public onScroll(Landroid/view/MotionEvent;Landroid/view/MotionEvent;FF)Z
    .locals 6
    .parameter "e1"
    .parameter "e2"
    .parameter "distanceX"
    .parameter "distanceY"

    .prologue
    .line 831
    iget-object v0, p0, Lcom/instagram/creation/video/f/al;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ae;->e(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/pendingmedia/model/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/a;->j()I

    move-result v0

    iget-object v1, p0, Lcom/instagram/creation/video/f/al;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v1}, Lcom/instagram/creation/video/f/ae;->e(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/pendingmedia/model/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/instagram/pendingmedia/model/a;->k()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v0

    int-to-double v0, v0

    .line 834
    iget-object v2, p0, Lcom/instagram/creation/video/f/al;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v2}, Lcom/instagram/creation/video/f/ae;->e(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/pendingmedia/model/a;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/pendingmedia/model/a;->a()Z

    move-result v2

    if-eqz v2, :cond_0

    float-to-double v2, p4

    div-double v0, v2, v0

    .line 836
    :goto_0
    const-wide/high16 v2, 0x3ff0

    iget-object v4, p0, Lcom/instagram/creation/video/f/al;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v4}, Lcom/instagram/creation/video/f/ae;->e(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/pendingmedia/model/a;

    move-result-object v4

    invoke-virtual {v4}, Lcom/instagram/pendingmedia/model/a;->e()F

    move-result v4

    float-to-double v4, v4

    add-double/2addr v0, v4

    const-wide/16 v4, 0x0

    invoke-static {v0, v1, v4, v5}, Ljava/lang/Math;->max(DD)D

    move-result-wide v0

    invoke-static {v2, v3, v0, v1}, Ljava/lang/Math;->min(DD)D

    move-result-wide v0

    .line 837
    iget-object v2, p0, Lcom/instagram/creation/video/f/al;->a:Lcom/instagram/creation/video/f/ae;

    double-to-float v3, v0

    invoke-static {v2, v3}, Lcom/instagram/creation/video/f/ae;->a(Lcom/instagram/creation/video/f/ae;F)V

    .line 838
    const-string v2, "VideoImportFragment"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Setting pan from "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/instagram/creation/video/f/al;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v4}, Lcom/instagram/creation/video/f/ae;->e(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/pendingmedia/model/a;

    move-result-object v4

    invoke-virtual {v4}, Lcom/instagram/pendingmedia/model/a;->e()F

    move-result v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, " to "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 840
    const/4 v0, 0x1

    return v0

    .line 834
    :cond_0
    float-to-double v2, p3

    div-double v0, v2, v0

    goto :goto_0
.end method

.method public onSingleTapUp(Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "e"

    .prologue
    .line 845
    iget-object v0, p0, Lcom/instagram/creation/video/f/al;->a:Lcom/instagram/creation/video/f/ae;

    invoke-static {v0}, Lcom/instagram/creation/video/f/ae;->r(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/creation/video/ui/LivePreviewTextureView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/LivePreviewTextureView;->performClick()Z

    .line 846
    invoke-super {p0, p1}, Landroid/view/GestureDetector$SimpleOnGestureListener;->onSingleTapUp(Landroid/view/MotionEvent;)Z

    .line 847
    const/4 v0, 0x1

    return v0
.end method
